<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<title>Js.append</title>
		<script type="text/javascript" src="../lib/jquery/jquery.js"></script>
		<script type="text/javascript" src="../lib/savvyui.js"></script>
		<script type="text/javascript" src="unit-testing.js"></script>
	</head>
	<body>
		<h1>Js.append</h1>
		<pre>
			Js.debug.enable = true;
			jQuery(function() {
				var person = {
					firstName: "Nor",
					lastName: ""
				};
				var job = {
					jobTitle: "",
					firstName: "Mior Muhammad Zaki",
					work: function() {
						return this.jobTitle;
					}
				};
				var zaki = Js.append(job, person);
				zaki.jobTitle = "Programmer";
				Js.util.Assert.isTrue(zaki.firstName, "Mior Muhammad Zaki", "zaki.firstName is " + zaki.firstName);
			});
		</pre>
		<div id="result">
			<h2>Result</h2>
		</div>
		
		<script type="text/javascript">
		<!--
		Js.debug.enable = true;
		jQuery(function() {
			var person = {
				firstName: "Nor",
				lastName: ""
			};
			var job = {
				jobTitle: "",
				firstName: "Mior Muhammad Zaki",
				work: function() {
					return this.jobTitle;
				}
			};
			var zaki = Js.append(job, person);
			zaki.jobTitle = "Programmer";
			Js.util.Assert.isTrue(zaki.firstName, "Mior Muhammad Zaki", "zaki.firstName is " + zaki.firstName);
		});
		-->
		</script>
		
	</body>
</html>